package io.renren.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

/**
 * @author Mark sunlightcs@gmail.com
 * @Title: CaptchaForm.java
 * @Description: 腾讯验证码
 */
@ApiModel(value = "发送短信验证码表单")
public class CaptchaForm {

	@ApiModelProperty(value = "手机号")
	@NotBlank(message = "手机号不能为空")
	private String mobile;

	@ApiModelProperty(value = "Ticket")
	@NotBlank(message = "Ticket不能为空")
	private String ticket;

	@ApiModelProperty(value = "Randstr")
	@NotBlank(message = "Randstr不能为空")
	private String randstr;

	@ApiModelProperty(value = "type 0:注册 1:找回密码")
	@NotNull(message = "type不能为空")
	@Range(min = 0, max = 1, message = "type无效")
	private Integer type;

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public String getRandstr() {
		return randstr;
	}

	public void setRandstr(String randstr) {
		this.randstr = randstr;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
